<?php
/**
 * Inicio de la aplicación Web
 */

require_once 'config.inc.php';

/* services control */
if(isset($_GET['service']))
  	$_SESSION['service'] = $_GET['service'];
elseif(!isset($_GET['service']) AND !isset($_SESSION['service']))
	$_SESSION['service'] = 'index';
elseif(empty($_GET))
	$_SESSION['service'] = 'index';

$web->start($_SESSION['service']);
?>